import request from '@/utils/request'

// 查询待办任务列表
export function listPendingTasks(query) {
  return request({
    url: '/le/pendingTasks/list',
    method: 'get',
    params: query
  })
}

// 查询待办任务详细
export function getPendingTasks(id) {
  return request({
    url: '/le/pendingTasks/' + id,
    method: 'get'
  })
}

// 新增待办任务
export function addPendingTasks(data) {
  return request({
    url: '/le/pendingTasks',
    method: 'post',
    data: data
  })
}

// 修改待办任务
export function updatePendingTasks(data) {
  return request({
    url: '/le/pendingTasks',
    method: 'put',
    data: data
  })
}

// 删除待办任务
export function delPendingTasks(id) {
  return request({
    url: '/le/pendingTasks/' + id,
    method: 'delete'
  })
}
